<?php
include_once('common/header.php');
$strRefer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';
if($AppUI->id <= 0 || $strRefer == '') {
	$arrJson 	= array('error'=>1,'msg'=>$arrError[1]);
	echo $objRequest->getParam('callback') . '(' . Zend_Json::encode($arrJson) . ')';
	exit();
}
$intTargetId 	= $objRequest->getParam('targetid',0);
$objProduct 	= new Product();
$intError		= $objProduct->deleteBasket($AppUI->id, $intTargetId);
if($intError == 0) {
	$arrJson	= array('error'	=> 0,'msg'=>$arrMessage[5]);
	echo $objRequest->getParam('callback') . '(' . Zend_Json::encode($arrJson) . ')';
	
} else {
	$arrJson 	= array('error'=>9,'msg'=>$arrError[9]);
	echo $objRequest->getParam('callback') . '(' . Zend_Json::encode($arrJson) . ')';
}
exit();
?>
